cmake_minimum_required(VERSION 3.0)

project(render_img)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

set(CMAKE_BUILD_TYPE Debug)

include_directories(${CMAKE_SOURCE_DIR}/include)

add_executable(render_img main.c src/sprite.c)

#link_directories(${CMAKE_SOURCE_DIR}/lib)

target_link_libraries(render_img ${CMAKE_SOURCE_DIR}/lib/SDL2.framework ${CMAKE_SOURCE_DIR}/lib/SDL2_image.framework)